<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
      xmlns:h="http://xmlns.jcp.org/jsf/html"
      xmlns:p="http://primefaces.org/ui">

    <body>

        <ui:composition template="./../WEB-INF/template/user/userPageTemplateWhitoutSidebar.xhtml">

            <ui:define name="title">
                Import
            </ui:define>

            
            <ui:define name="content">

                
                <p:panel header="Import" styleClass="centeredFormHight" >
                        <p:fieldset legend="Importation Info" collapsed="true" toggleable="true" toggleSpeed="500">
      
                        
                            <h:outputText value="You can Export or Import your calendar from Meteocal 
                                          in iCalendar (.ics) format. This one is compatible with all 
                                          major calendar applications like Google Calendar, Outlook etc. 
                                          so once exported you can import your calendar in these 
                                          applications. Doing this some information used in Meteocal 
                                          but not in other web calendar (like outdoor/indoor information) 
                                          could be lost. The same is if you import a calendar from another 
                                          application, some information used in that application could be 
                                          lost in Meteocal. The best thing would be to export or import 
                                          calendars only in Meteocal. Exporting your calendar all events 
                                          data are exported. You can Import a calendar in any moment, 
                                          no event will be overwritten or deleted, your imported events are 
                                          just added to other events in your calendar. The events to which
                                          you have been invited will be imported as if you were the 
                                          organizer of the event."></h:outputText>
                        </p:fieldset>
                        
                        <h:form enctype="multipart/form-data" id="buttonsForm">
                            <p:fileUpload  value="#{editProfile.ufile}" mode="simple" allowTypes="/(\.|\/)(ics)$/"/>
                            <p:commandButton value="Submit" ajax="false" actionListener="#{editProfile.importUfile}"/> 
                        </h:form>
                        
                    </p:panel>
                
                    
            </ui:define>

        </ui:composition>

    </body>
</html>
